
<template>
</template>
  <script>
  export default {
    name: 'PhasedLayoutPlan' + Date.now(),
    components: {},
    data() {
      return {
        // 加载
        loading: false
      }
    },
    computed: {
      // 地址携带信息
      info() {
        return this.$route.query
      }
    },
    mounted() {
    
    },
    methods: {
      /**
       * @description: 保存草稿
       * @param {object} baseInfo 基本信息
       * @return {void}
       */
       PhasedLayoutPlanSaveDrafts(baseInfo) {
        this.handleSubmit(0,baseInfo)
      },
      /**
       * @description: 提交
       * @param {object} baseInfo 基本信息
       * @return {void}
       */
       PhasedLayoutPlanSubmit(baseInfo) {
        const vm = this
        this.$confirm({
          title: '温馨提示',
          content: '请确认是否提交？',
          onOk() {
            vm.handleSubmit(1,baseInfo)
          },
          onCancel: () => { this.$emit('update:spinning', false)}
        })
      },
      /**
       * @description: 数据提交
       * @param {number} status 状态码
       * @return {void}
       */
      handleSubmit(status, baseInfo) {
        const { id: schemeDetailId, pageType } = this.info
        baseInfo.schemeDetailId = schemeDetailId
        baseInfo.status = status
        this.$emit('updateBasicDetail', baseInfo) 
      }
    }
  }
  </script>
  <style lang="less" scoped>
  @deep: ~'>>>';
  .add {
    margin-right: 20px;
    margin-bottom: 20px;
  }
  @{deep}.input {
    .ant-input,
    .ant-input-number,
    .ant-select-selection {
      border-color: #e4ac0b;
      background-color: #fff9e8;
    }
  }
  </style>
  
  